package StudyCode.summary.myfile;

import java.util.zip.Adler32;
import java.util.zip.Checksum;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CreateAdler32 {
	public static void main(String args[]) {
		String str = "Hello World By Java";
		byte bytes[] = str.getBytes();

		Checksum checksum = new Adler32();
		checksum.update(bytes, 0, bytes.length);
		long lngchecksum = checksum.getValue();
		System.out.println("Byte 数组的校验和:" + lngchecksum);
	}
}
